/**
 * 定义门禁实体
 */
(function(window, angular, undefined){
	var Module = angular.module('water.entity.accessDoor', ['waterCommon']);
	
	Module.service('$accessDoorService',function($waterDataCommon){
		/**
		 * 获取门禁数据
		 * WWTP_ID
		 */
		this.getList = function(data){
			data.pageSizeData=10;
			data.pageIndexData=1;
			var promise = $waterDataCommon.post("/AccessController/getAccessDataById",data);
			return promise;
		}
		/**
		 * 新建门禁信息
		 */
		this.createModel = function(data){
			var promise = $waterDataCommon.post("/AccessController/savaAccessData",data);
			return promise;
		}
		/**
		 * 更新门禁信息
		 */
		this.updateModel = function(data){
			var promise = $waterDataCommon.post("/AccessController/savaAccessData",data);
			return promise;
		}
		/**
		 * 删除视频信息
		 */
		this.deleteModel = function(data){
			var promise = $waterDataCommon.post("/AccessController/deleteAccessData",data);
			return promise;
		}
	});
}(window, angular));